﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AutorizacionViajesMVC.WSUsuario.Usuario>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	PokaYoke
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2><%: TempData["error"] %></h2>
    <h2>Panel Usuario</h2>
    <form action="../Usuario/Buscar" method="post">
Codigo: <input id="Text1" name="Text1" type="text" value="" />
<input type="submit" value="Buscar" />
</form>
    <table>
        <tr>
            <%--<th></th>--%>
            <th>
                Codigo
            </th>
            <th>
                Nombre
            </th>
            <th>
                Apellidos
            </th>
            <th>
                CodigoG
            </th>
            <th>
                Area
            </th>
            <th>
                CCosto
            </th>
            <th>
                DNI
            </th>
            <th>
                Status
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <%--<td>
                <%: Html.ActionLink("Editar", "Edit", new { id = item.Codigo })%> |
                <%: Html.ActionLink("Detalle", "Details", new { id = item.Codigo })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.Codigo })%>
            </td>--%>
            <td>
                <%: item.Codigo%>
            </td>
            <td>
                <%: item.Nombre%>
            </td>
            <td>
                <%: item.Apellidos%>
            </td>
            <td>
                <%: item.CodigoG %>
            </td>
            <td>
                <%: item.Area %>
            </td>
            <td>
                <%: item.CCosto%>
            </td>
            <td>
                <%: item.DNI %>
            </td>
            <td>
                <%: item.Status %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear Nuevo Empleado", "Create") %>
    </p>

</asp:Content>

